﻿
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="author" content="m.ecdrt.com">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" name="viewport" />
  <meta name="format-detection" content="telephone=no" />
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  <meta content="telephone=no" name="format-detection" />
  <meta content="false" id="twcClient" name="twcClient" />
  <link type="text/css" rel="stylesheet" href="/shop/templates/cdrt/css/style_1.css">
  <link rel="apple-touch-icon-precomposed" href="{$shopconfig.logo}" />
  <link rel="shortcut icon" type="image/x-icon" href="{$shopconfig.logo}" />
  <script type="text/javascript" src="/shop/templates/cdrt/js/zepto.js"></script>

  <script type="text/javascript" src="/shop/templates/cdrt/js/mediav.js"></script>
  <script src="/shop/templates/cdrt/js/jquery-2.0.2.min.js"></script>
  <script type="text/javascript">
    $(function () {
      $.getJSON("/shop/shopmgr.ashx?wid={$wid}&openid={$openid}&myact=pcount", function (d, status) {
        $("#count").text(d.data);
      });
    });

  </script>
  <title>商品明细 </title>
  <link type="text/css" rel="stylesheet" href="/shop/templates/cdrt/css/style.css">
  <link type="text/css" rel="stylesheet" href="/shop/templates/cdrt/css/member.css">
  <link type="text/css" rel="stylesheet" href="/shop/templates/cdrt/css/Details.css">
</head>
<body>
  <header class="header">
    <span class="fh left"><a href="javascript:history.back(1)">&nbsp;</a></span>  我的订单
    <span class="hd_right right">
      <a class="gwc" href="{$carturl}"><span id="count"></span>&nbsp;</a>
      <a class="right_but" href="/shop/navigate.aspx?wid={$wid}&openid={$openid}">&nbsp;</a>
    </span>
  </header>
  <section class="mainLayout">
    <div class="main">
      <div class="Login">
        <div class="address_nr">
          <div class="address_top">
            <div class="address_t order_top">订单号：{$order.order_no}</div>
            <div class="address_b">
              <div class="mycomments_top">
                <div class="product_right">
                  <vt:foreach from="$order.order_product" item="g" index="j">
                    <div class="mycomments_title buy_title"> {$g.productName}</div>
                    <div class="mycomments_sj">价格：<span class="search_price">￥{$order.real_amount}</span> </div>
                    <div class="mycomments_sj">数量：<span>{$g.stock}</span></div>
                  </vt:foreach>
                </div>
              </div>
            </div>
            <div class="address_b order_zhui" id="bhao">
              <span>物流编号：<span id="wuliu">{$order.express_no}</span></span></br>
              <span>快递公司：{$expressName}</span>
            </div>
            <div class="address_b order_zhui" id="retData">
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <vt:template id="_bottom" file="_bottom.html" charset="utf-8" />

  <script src="../../../scripts/jquery/jquery.query.js"></script>
  <script type="text/javascript">
    $(function () {
      if ($("#wuliu").text() == "") {
        $("#wuliu").text("物流编号不存在")
      }
    });
    var rid = $.query.get("orderid");
    var wid = $.query.get("wid");
    var openid = $.query.get("openid");
    if (rid > 0) {
      $.get("Get.aspx",
        { wid: wid, openid: openid, rid: rid },
        function (data) {
          $("#bhao").hide();
          if (data != null) {
            $("#bhao").show();
            $("#retData").html(data);
          }
        });
    }
  </script>

  <!--联系客服-->
  <div class="tc2" style="display:none;">
    <div class="kf_top">
      <p class="dh">4008-281-919</p>
      <p class="tc_cg">早8:00 - 晚20:00</p>
    </div>
    <div class="tc_button">
      <ul>
        <li><a href="tel:4008-281-919">拨打咨询</a></li>
        <li><a href="javascript:void(0)" class="lxkf_close">取消</a></li>
      </ul>
    </div>
  </div>

  <script type="text/javascript">
    $(".lxkf").click(function () {
      if ($('#load_mask').length) { }
      else {
        var h = $(document.body).height() + "px";
        $("<div id='load_mask' class='tc_zz' style='height:" + h + "' />").appendTo("body");
      }
      $("#load_mask").show();
      var t = $(window).scrollTop(), h = $(window).height(), iTop = 0;
      iTop = ((h - $(".tc2").height()) / 2 + t) + "px";
      $(".tc2").css("top", iTop).show();
    })

    //联系客服关闭
    $(".lxkf_close").click(function () {
      $(".tc2").hide();
      $("#load_mask").hide();
    })
  </script>
</body>
</html>